﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ page import="com.platform.pojo.*" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>南京化工职业技术学院资源共享平台</title>
	<link href="<%=basePath%>res/css/css.css" type="text/css" rel="stylesheet" />
</head>
<body style="width:900px;margin:0 auto;">
<div id="header">
   <div id="top">
       <ul>
            <li><marquee onmouseover=this.stop() onmouseout=this.start()>今日访问：${accessCount }&nbsp;&nbsp;共享资源总数：${resCount }&nbsp;&nbsp;注册用户总数：${userCount }&nbsp;&nbsp;资源共享达人：${daUser.realName }&nbsp;&nbsp;资源下载热度：${faRes.name }</marquee></li>
       </ul>
   </div>
   <div id="bottom">
       <div id="bleft"><img src="<%=basePath%>res/images/share_05.jpg" width="387" height="65" />
       </div>
       <div id="bright">
            <ul>
            <ul>
            	<c:if test="${empty user}">
                 <li><a href="javascript:window.location.href='<%=basePath%>login.jsp?refreshurl=entry.jsp';"><img src="<%=basePath%>res/images/share_08.jpg" width="31" height="18" /></a>&nbsp;&nbsp;
                 	<a href="javascript:window.location.href='<%=basePath%>register.jsp?refreshurl=entry.jsp';"><img src="<%=basePath%>res/images/share_1.jpg" width="31" height="18" /></a>&nbsp;&nbsp;
                 	<a href="javascript:window.location.href='<%=basePath%>retrieve.jsp';">忘记密码？</a>
                 </li>
                 </c:if>
            	<c:if test="${!empty user}">
                 <li>
                 	<h2>${user.realName }，欢迎回来！</h2><h2><a href="<%=basePath%>human.jsp" style="color:red;">个人中心，</a></h2>&nbsp;&nbsp;<h2><a href="<%=basePath%>njcc/logout.action">点击退出！</a></h2>
                 </li>
                 </c:if>
            </ul>
       </div>
   </div>
</div>
<div id="content">
  <div id="cright" style="width:100%">
                	<div id="location"><a class="blue" href="<%=basePath%>">首页</a>
				                		<span class="blue"> >> </span><a class="blue" href="javascript:void(0);" title="资源上传">资源上传</a>
  							<a href="javascript:history.back();" style="font-size:12px;">返回</a>
				       </div>

<!--全部资源 end-->
<form action="<%=basePath%>njcc/searchCourse.action?courseQueryType=${courseQueryType }" method="post">
			 <div id="all-source">
                	<!-- <p><strong class="list-titleqb">全部资源</strong></p> -->
	    <table class="table-1" cellspacing=0>
						<thead>
							<tr>
								<td class="td-2" style="width:200px;"><strong>文件名</strong></td>
								<td class="td-2"><strong>状态</strong></td>
							</tr>
						</thead>
						<tbody>
							<c:choose>
								<c:when test="${empty uploadFileName}">
									<tr>
										<td></td>
									</tr>
								</c:when>
								<c:otherwise>
									<tr>
							  			<td style="width:20px;">	
					  						<table>
									  			<c:forEach items="${uploadFileName}" var="obj">
									  				<tr>
									  					<td>${obj}</td>
									  				</tr>
									  			</c:forEach>
					  						</table>
								  		</td>
								  		<td>
								  			<c:forEach items="${msg}" var="obj">
								  				<table>
									  				<tr>
									  					<td>${obj }</td>
									  				</tr>
								  				</table>
								  			</c:forEach>
				  						</table>
				  						</td>
									</tr>
								</c:otherwise>
							</c:choose>
							<tr>
								<td style="text-align:left;">
									<a href="<%=basePath %>upload.jsp">继续上传</a>
								</td>
								<td style="text-align:left;">
									<a href="<%=basePath %>njcc/loadCustomResList.action?type=myupload">查看我上传的文件</a>
								</td>
							</tr>
						</tbody>
					</table>
</form>
			</div>
  </div>
<div id="guanggao1" style="margin-bottom:5px;"><img src="<%=basePath%>res/images/share_44.jpg" width="900" height="95" /></div>
<div id="banquan">
           <ul>
                 <li>南京化工职业技术学院--资源共享网 <img src="<%=basePath%>res/images/pic.gif" width="50" height="12" /></li>           
                 <li>诚聘英才 | 友情链接 | 联系我们</li> 
                 <li>版权所有©南京化工职业技术学院 ICP：沪B2-20030192 </li>
  </ul>
</div>
</body>
</html>
